import request from 'umi-request';

export async function addRule() {
  return request('/api/profile/basic');
}

export async function queryFakeList(params) {
  params ={type200:1,...params}
  return request('/exam/list', {
    params
  });
}

export async function searchexamList(params) {
  params ={type200:1,...params}
  return request('/exam/getExperimentList', {
    params
  });
}

export async function addFakeList(params) {
  console.log(params)
  return request('/exam/create', {
    method: 'POST',
    data: params,
    requestType:"json"
  });
}
export async function updateFakeList(params) {
  return request('/exam/update', {
    method: 'POST',
    data: params,
  });
}

export async function removeFakeList(params) {
  return request('/exam/del', {
    method: 'POST',
    params
  });
}
export async function getstudents(params) {
  params ={type200:1,...params}
  return request('/exam/studentList', {
    params
  });
}

export async function searchsteaList(params) {
  params ={type200:1,...params}
  return request('/admin/searchStudent', {
    params
  });
}
export async function addstudent(params) {
  return request('/exam/studentCreate', {
    method: 'POST',
    params
  });
}
// 导入班级列表/class/list 这是所有班级列表
export async function getclassList(params) {
  params ={type200:1,...params}
  return request('/exam/classList', {
    params
  });
}

export async function importClass(params) {
  params ={type200:1,...params}
  return request('/exam/importClass', {
    method: 'POST',
    params
  });
}
export async function studentDel(params) {
  return request('/exam/studentDel', {
    method: 'POST',
    params
  });
}